package org.ktjy.springbootch01.comm;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.io.Serializable;

@Component
@ConfigurationProperties(prefix = "room")
public class RoomProperties implements Serializable {
    private String title;
    private String addr;
    private int count;

    public RoomProperties() {
    }

    public RoomProperties(String title, String addr, int count) {
        this.title = title;
        this.addr = addr;
        this.count = count;
    }

    /**
     * 获取
     * @return title
     */
    public String getTitle() {
        return title;
    }

    /**
     * 设置
     * @param title
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 获取
     * @return addr
     */
    public String getAddr() {
        return addr;
    }

    /**
     * 设置
     * @param addr
     */
    public void setAddr(String addr) {
        this.addr = addr;
    }

    /**
     * 获取
     * @return count
     */
    public int getCount() {
        return count;
    }

    /**
     * 设置
     * @param count
     */
    public void setCount(int count) {
        this.count = count;
    }

    public String toString() {
        return "RoomProperties{title = " + title + ", addr = " + addr + ", count = " + count + "}";
    }
}
